package com.skynet.supervision.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
public enum FilesClass {
    one("纸质件","0"),
    two("扫面件","1"),
    three("复印件","2"),
    four("电子文件","3"),
    five("CD/DVD刻录件","4");
    @Getter
    private final String status;
    @Getter
    private final String code;

    public static FilesClass of(String code) {
        if (code != null) {
            for (FilesClass s : FilesClass.values()) {
                if (s.getCode().equals(code)) {
                    return s;
                }
            }
        }
        return null;

    }
}
